package org.ham007.proxysender.server.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.ham007.proxysender.server.twitter.cmd.MessageParser;

/**
 * メッセージを解析、実行サーブレット</br>
 * @author 223
 *
 */
@SuppressWarnings("serial")
public class MessageParseServlet extends HttpServlet
{
	private MessageParser parser = null;
	
	@Override
	public void init() throws ServletException {
		parser = new MessageParser();
	}
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
	{
		parser.proc();
		resp.setContentType("text/html; charset=UTF-8");
		resp.getWriter().println("ParseMessages");
	}
}
